import type { RouteRecordRaw } from 'vue-router';
import { createRouter, createWebHistory } from 'vue-router';


const routes: RouteRecordRaw[] = [
  {
    path: '',
    component: () => import('@/view/loginView.vue')
  }, {
    name: 'home',
    path: '/home',
    component: () => import('../view/homeView.vue')
  }, {
    name: 'info',
    path: '/info',
    component: () => import('../view/infoView.vue')
  }, {
    name: 'form',
    path: '/form',
    component: () => import('../view/formView.vue')
  }, {
    path: '/*',
    redirect: ''
  }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router
